/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Farcast;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/**
 * @author Jeroen Rikhof
 */
public class Farcast extends MIDlet {
    private Display display;
    private FormMain formMain;
    public DisplayManager displayManager;
    
    protected Message message;

    public Farcast() {
        this.display = Display.getDisplay(this);
        
        this.message = new Message();
        
        this.formMain = new FormMain(this);
        this.displayManager = new DisplayManager(display, formMain);
    }
       
    public void startApp() throws MIDletStateChangeException {
        display.setCurrent(formMain);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
    
    public void exitMIDlet() {
	destroyApp(true);
	notifyDestroyed();	
    }
}
